<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - 图书管理系统</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #3f51b5;
            --secondary-color: #f50057;
            --bg-color: #f5f5f5;
            --card-color: #ffffff;
            --text-color: #333333;
            --text-light: #666666;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .navbar {
            background-color: var(--primary-color);
            color: white;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .navbar-brand i {
            margin-right: 0.5rem;
        }

        .navbar-links {
            display: flex;
            gap: 1.5rem;
        }

        .navbar a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 0;
            position: relative;
            font-weight: 500;
            transition: color 0.3s;
        }

        .navbar a:hover {
            color: rgba(255, 255, 255, 0.8);
        }

        .navbar a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background-color: white;
            bottom: 0;
            left: 0;
            transition: width 0.3s;
        }

        .navbar a:hover::after {
            width: 100%;
        }

        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .hero {
            background-color: var(--card-color);
            border-radius: var(--border-radius);
            padding: 3rem 2rem;
            margin-bottom: 2rem;
            text-align: center;
            box-shadow: var(--shadow);
            background-image: linear-gradient(120deg, rgba(63, 81, 181, 0.1), rgba(245, 0, 87, 0.1));
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        .btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #303f9f;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .btn-secondary {
            background-color: var(--secondary-color);
        }

        .btn-secondary:hover {
            background-color: #c51162;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-card {
            background-color: var(--card-color);
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            text-align: center;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        h2 {
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        h3 {
            margin-bottom: 0.8rem;
            color: var(--primary-color);
        }

        ul {
            list-style-position: inside;
            margin-bottom: 1.5rem;
        }

        li {
            margin-bottom: 0.5rem;
            padding-left: 0.5rem;
        }

        .user-actions {
            margin-top: 2rem;
            text-align: center;
        }

        footer {
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            padding: 1.5rem 0;
            margin-top: 3rem;
        }

        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                padding: 1rem;
            }

            .navbar-brand {
                margin-bottom: 1rem;
            }

            .hero {
                padding: 2rem 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
<nav class="navbar">
    <div class="navbar-brand">
        <i class="fas fa-book"></i>
        <span>图书管理系统</span>
    </div>
    <div class="navbar-links">
        <a href="/"><i class="fas fa-home"></i> 首页</a>
        <a href="/book/list"><i class="fas fa-list"></i> 我的图书</a>
        <a href="/logout"><i class="fas fa-sign-out-alt"></i> 退出登录</a>
    </div>
</nav>

<div class="container">
    <div class="hero">
        <h1>欢迎使用图书管理系统</h1>
        <p>一个简单高效的图书管理平台，帮助您轻松管理个人藏书</p>
        <a href="/book/list" class="btn"><i class="fas fa-book-open"></i> 进入我的图书</a>
    </div>

    <div class="features">
        <div class="feature-card">
            <div class="feature-icon">
                <i class="fas fa-plus-circle"></i>
            </div>
            <h3>添加与管理</h3>
            <p>轻松添加、修改和删除您的图书信息，保持您的图书目录井井有条</p>
        </div>

        <div class="feature-card">
            <div class="feature-icon">
                <i class="fas fa-search"></i>
            </div>
            <h3>检索与浏览</h3>
            <p>强大的搜索功能，帮助您快速找到需要的图书信息</p>
        </div>

        <div class="feature-card">
            <div class="feature-icon">
                <i class="fas fa-user-cog"></i>
            </div>
            <h3>个人账户管理</h3>
            <p>安全便捷地管理您的个人账户信息与偏好设置</p>
        </div>
    </div>

    <div class="user-actions">
        <a href="/book/list" class="btn btn-secondary"><i class="fas fa-arrow-right"></i> 立即开始</a>
    </div>
</div>

<footer>
    <p>&copy; 2025 图书管理系统 - 让图书管理更简单</p>
</footer>

<script src="/js/script.js"></script>
</body>
</html>